<div class="product-display-section container-fluid" id="premium-welders">
  <h2 class="sec-custome-h2 {{ section.settings.custom_h2_class }}">
      <img src="{{ 'product-sec-h2-bg.png' | asset_url }}" class="sec-custome-h2-img" />
      <span>{{ section.settings.activity_title }}</span>
      <img src="{{ 'product-sec-h2-bg.png' | asset_url }}" class="sec-custome-h2-img" />
  </h2>
  {% if section.settings.show_img_premiumwelders %}
  <div id="landing-page-banner-third" class="header-banner">
    <a href="{{ section.settings.premiumwelders_img_href }}" style="margin:0 auto;">
      <img class="banner-mobile-image" src="{% if section.settings.premiumwelders_img_mobile %}{{ section.settings.premiumwelders_img_mobile | img_url: 'master' }}
      {% else %}{{ 'Black_Friday_mob.jpg' | asset_url }}{% endif %}"  
      style="margin:0 auto;" />

      <img class="banner-desktop-image" src="{% if section.settings.premiumwelders_img_pc %}{{ section.settings.premiumwelders_img_pc | img_url: 'master' }}
      {% else %}{{ 'Black_Friday_pc_banner.jpg' | asset_url }}{% endif %}"  
      style="margin:0 auto;" />
    </a>
  </div>
  {% endif %}
  <div class="product-section">
      <div class="products">
        {% assign product_41 = section.settings.selected_product_41 %}
        {% if product_41 %}
            {% assign valid_variant_found_41 = false %}
            {% assign no_variant_41 = false %}
            {% for variant in product_41.variants %}
              {% if variant.available and variant.inventory_quantity > 0 %}
                {% assign valid_variant_found_41 = true %}
                {% if variant.title == 'Default Title' %}
                {% assign no_variant_41 = true %}
                {% endif %}
                {% break %}
              {% endif %}
            {% endfor %}
            {% if valid_variant_found_41 %}
            <div class="product-card">
                {% assign variant_first_41 = product_41.variants.first %}
                {% if variant_first_41.compare_at_price and variant_first_41.compare_at_price > variant_first_41.price %}
                  {% assign discount_diff_41 = variant_first_41.compare_at_price | minus: variant_first_41.price %}
                  {% assign discount_diff_no_decimal_41 = discount_diff_41 | floor %}
                <div class="discount-badge">{{ discount_diff_no_decimal_41 | money_without_trailing_zeros }}</div>
                <img src="{% if variant_first_41.title == 'Default Title' %} {{ product_41.featured_image.src | img_url: 'medium' }} {% else %} {{ variant_first_41.featured_image.src | img_url: 'medium' }} {% endif %}" alt="{{ product_41.title }}" />
                  {% else %}
                  {% assign discount_diff_41 = product_41.compare_at_price | minus: product_41.price %}
                  {% assign discount_diff_no_decimal_41 = discount_diff_41 | floor %}
                <div class="discount-badge">{{ discount_diff_no_decimal_41 | money_without_trailing_zeros }}</div>
                <img src="{{ product_41.featured_image | img_url: 'medium' }}" alt="{{ product_41.title }}" />
                {% endif %}
                
                <div class="product-info">
                    {% if product_41.compare_at_price and product_41.compare_at_price > product_41.price %}
                    <p class="promo-info">{{ section.settings.promo_sale_tip_4 }}</p>
                    {% endif %}
                    <h3>{{ product_41.title }}</h3>
                    {% if no_variant_41 %} <div class="product-blank-area"><p></p></div> {% endif %}
                    <select class="prodduct-selects{% if no_variant_41 %} hidden {% endif %}" id="prodduct-select-{{ product_41.id }}" onchange="return productSelectChange(this);">
                        {% for variant in product_41.variants %}
                        <option class="prodduct-selects-option" 
                          data-id="{{ variant.id }}" 
                          data-price="{{ variant.price | money }}" 
                          data-old-price="{{ variant.compare_at_price | money }}"
                          data-image-url="{{ variant.featured_image.src | img_url: 'medium' }}"
                        >
                          {{ variant.title }}
                        </option>
                        {% endfor %}
                    </select>
                    <p class="price">{{ product_41.price | money }}
                    {% if product_41.compare_at_price and product_41.compare_at_price > product_41.price %}
                    <span class="old-price">{{ product_41.compare_at_price | money }}</span>
                    {% endif %}
                    </p>
                </div>
                <div class="buttons">
                    <button class="buy-now" onclick="return buyNowProductItem(this);">BUY NOW</button>
                    <button onclick="javascript:window.location.href='{{ product_41.url }}'">LEARN MORE</button>
                </div>
            </div>
            {% endif %}
        {% endif %}

        {% assign product_42 = section.settings.selected_product_42 %}
        {% if product_42 %}
            {% assign valid_variant_found_42 = false %}
            {% assign no_variant_42 = false %}
            {% for variant in product_42.variants %}
              {% if variant.available and variant.inventory_quantity > 0 %}
                {% assign valid_variant_found_42 = true %}
                {% if variant.title == 'Default Title' %}
                {% assign no_variant_42 = true %}
                {% endif %}
                {% break %}
              {% endif %}
            {% endfor %}
            {% if valid_variant_found_42 %}
            <div class="product-card">
                {% assign variant_first_42 = product_42.variants.first %}
                {% if variant_first_42.compare_at_price and variant_first_42.compare_at_price > variant_first_42.price %}
                  {% assign discount_diff_42 = variant_first_42.compare_at_price | minus: variant_first_42.price %}
                  {% assign discount_diff_no_decimal_42 = discount_diff_42 | floor %}
                <div class="discount-badge">{{ discount_diff_no_decimal_42 | money_without_trailing_zeros }}</div>
                <img src="{% if variant_first_42.title == 'Default Title' %} {{ product_42.featured_image.src | img_url: 'medium' }} {% else %} {{ variant_first_42.featured_image.src | img_url: 'medium' }} {% endif %}" alt="{{ product_42.title }}" />
                  {% else %}
                  {% assign discount_diff_42 = product_42.compare_at_price | minus: product_42.price %}
                  {% assign discount_diff_no_decimal_42 = discount_diff_42 | floor %}
                <div class="discount-badge">{{ discount_diff_no_decimal_42 | money_without_trailing_zeros }}</div>
                <img src="{{ product_42.featured_image | img_url: 'medium' }}" alt="{{ product_42.title }}" />
                {% endif %}
                <div class="product-info">
                    {% if product_42.compare_at_price and product_42.compare_at_price > product_42.price %}
                    <p class="promo-info">{{ section.settings.promo_sale_tip_4 }}</p>
                    {% endif %}
                    <h3>{{ product_42.title }}</h3>
                    {% if no_variant_42 %} <div class="product-blank-area"><p></p></div> {% endif %}
                    <select class="prodduct-selects{% if no_variant_42 %} hidden {% endif %}" id="prodduct-select-{{ product_42.id }}" onchange="return productSelectChange(this);">
                        {% for variant in product_42.variants %}
                        <option class="prodduct-selects-option" 
                          data-id="{{ variant.id }}" 
                          data-price="{{ variant.price | money }}" 
                          data-old-price="{{ variant.compare_at_price | money }}"
                          data-image-url="{{ variant.featured_image.src | img_url: 'medium' }}"
                        >
                          {{ variant.title }}
                        </option>
                        {% endfor %}
                    </select>
                    <p class="price">{{ product_42.price | money }}
                    {% if product_42.compare_at_price and product_42.compare_at_price > product_42.price %}
                    <span class="old-price">{{ product_42.compare_at_price | money }}</span>
                    {% endif %}
                    </p>
                </div>
                <div class="buttons">
                    <button class="buy-now" onclick="return buyNowProductItem(this);">BUY NOW</button>
                    <button onclick="javascript:window.location.href='{{ product_42.url }}'">LEARN MORE</button>
                </div>
            </div>
            {% endif %}
        {% endif %}
        
        {% assign product_43 = section.settings.selected_product_43 %}
        {% if product_43 %}
            {% assign valid_variant_found_43 = false %}
            {% assign no_variant_43 = false %}
            {% for variant in product_43.variants %}
              {% if variant.available and variant.inventory_quantity > 0 %}
                {% assign valid_variant_found_43 = true %}
                {% if variant.title == 'Default Title' %}
                {% assign no_variant_43 = true %}
                {% endif %}
                {% break %}
              {% endif %}
            {% endfor %}
            {% if valid_variant_found_43 %}
            <div class="product-card">
                {% assign variant_first_43 = product_43.variants.first %}
                {% if variant_first_43.compare_at_price and variant_first_43.compare_at_price > variant_first_43.price %}
                  {% assign discount_diff_43 = variant_first_43.compare_at_price | minus: variant_first_43.price %}
                  {% assign discount_diff_no_decimal_43 = discount_diff_43 | floor %}
                <div class="discount-badge">{{ discount_diff_no_decimal_43 | money_without_trailing_zeros }}</div>
                <img src="{% if variant_first_43.title == 'Default Title' %} {{ product_43.featured_image.src | img_url: 'medium' }} {% else %} {{ variant_first_43.featured_image.src | img_url: 'medium' }} {% endif %}" alt="{{ product_43.title }}" />
                  {% else %}
                  {% assign discount_diff_43 = product_43.compare_at_price | minus: product_43.price %}
                  {% assign discount_diff_no_decimal_43 = discount_diff_43 | floor %}
                <div class="discount-badge">{{ discount_diff_no_decimal_43 | money_without_trailing_zeros }}</div>
                <img src="{{ product_43.featured_image | img_url: 'medium' }}" alt="{{ product_43.title }}" />
                  {% endif %}
                <div class="product-info">
                    {% if product_43.compare_at_price and product_43.compare_at_price > product_43.price %}
                    <p class="promo-info">{{ section.settings.promo_sale_tip_4 }}</p>
                    {% endif %}
                    <h3>{{ product_43.title }}</h3>
                    {% if no_variant_43 %} <div class="product-blank-area"><p></p></div> {% endif %}
                    <select class="prodduct-selects{% if no_variant_43 %} hidden {% endif %}" id="prodduct-select-{{ product_43.id }}" onchange="return productSelectChange(this);">
                        {% for variant in product_43.variants %}
                        <option class="prodduct-selects-option" 
                          data-id="{{ variant.id }}" 
                          data-price="{{ variant.price | money }}" 
                          data-old-price="{{ variant.compare_at_price | money }}"
                          data-image-url="{{ variant.featured_image.src | img_url: 'medium' }}"
                        >
                          {{ variant.title }}
                        </option>
                        {% endfor %}
                    </select>
                    <p class="price">{{ product_43.price | money }}
                    {% if product_43.compare_at_price and product_43.compare_at_price > product_43.price %}
                    <span class="old-price">{{ product_43.compare_at_price | money }}</span>
                    {% endif %}
                    </p>
                </div>
                <div class="buttons">
                    <button class="buy-now" onclick="return buyNowProductItem(this);">BUY NOW</button>
                    <button onclick="javascript:window.location.href='{{ product_43.url }}'">LEARN MORE</button>
                </div>
            </div>
            {% endif %}
        {% endif %}

        {% assign product_44 = section.settings.selected_product_44 %}
        {% if product_44 %}
            {% assign valid_variant_found_44 = false %}
            {% assign no_variant_44 = false %}
            {% for variant in product_44.variants %}
              {% if variant.available and variant.inventory_quantity > 0 %}
                {% assign valid_variant_found_44 = true %}
                {% if variant.title == 'Default Title' %}
                {% assign no_variant_44 = true %}
                {% endif %}
                {% break %}
              {% endif %}
            {% endfor %}
            {% if valid_variant_found_44 %}
            <div class="product-card">
                {% assign variant_first_44 = product_44.variants.first %}
                {% if variant_first_44.compare_at_price and variant_first_44.compare_at_price > variant_first_44.price %}
                  {% assign discount_diff_44 = variant_first_44.compare_at_price | minus: variant_first_44.price %}
                  {% assign discount_diff_no_decimal_44 = discount_diff_44 | floor %}
                <div class="discount-badge">{{ discount_diff_no_decimal_44 | money_without_trailing_zeros }}</div>
                <img src="{% if variant_first_44.title == 'Default Title' %} {{ product_44.featured_image.src | img_url: 'medium' }} {% else %} {{ variant_first_44.featured_image.src | img_url: 'medium' }} {% endif %}" alt="{{ product_44.title }}" />
                  {% else %}
                  {% assign discount_diff_44 = product_44.compare_at_price | minus: product_44.price %}
                  {% assign discount_diff_no_decimal_44 = discount_diff_44 | floor %}
                <div class="discount-badge">{{ discount_diff_no_decimal_44 | money_without_trailing_zeros }}</div>
                <img src="{{ product_44.featured_image | img_url: 'medium' }}" alt="{{ product_44.title }}" />
                  {% endif %}
                <div class="product-info">
                    {% if product_44.compare_at_price and product_44.compare_at_price > product_44.price %}
                    <p class="promo-info">{{ section.settings.promo_sale_tip_4 }}</p>
                    {% endif %}
                    <h3>{{ product_44.title }}</h3>
                    {% if no_variant_44 %} <div class="product-blank-area"><p></p></div> {% endif %}
                    <select class="prodduct-selects{% if no_variant_44 %} hidden {% endif %}" id="prodduct-select-{{ product_44.id }}" onchange="return productSelectChange(this);">
                        {% for variant in product_44.variants %}
                        <option class="prodduct-selects-option" 
                          data-id="{{ variant.id }}" 
                          data-price="{{ variant.price | money }}" 
                          data-old-price="{{ variant.compare_at_price | money }}"
                          data-image-url="{{ variant.featured_image.src | img_url: 'medium' }}"
                        >
                          {{ variant.title }}
                        </option>
                        {% endfor %}
                    </select>
                    <p class="price">{{ product_44.price | money }}
                    {% if product_44.compare_at_price and product_44.compare_at_price > product_44.price %}
                    <span class="old-price">{{ product_44.compare_at_price | money }}</span>
                    {% endif %}
                    </p>
                </div>
                <div class="buttons">
                    <button class="buy-now" onclick="return buyNowProductItem(this);">BUY NOW</button>
                    <button onclick="javascript:window.location.href='{{ product_44.url }}'">LEARN MORE</button>
                </div>
            </div>
            {% endif %}
        {% endif %}

        {% assign product_45 = section.settings.selected_product_45 %}
        {% if product_45 %}
            {% assign valid_variant_found_45 = false %}
            {% assign no_variant_45 = false %}
            {% for variant in product_45.variants %}
              {% if variant.available and variant.inventory_quantity > 0 %}
                {% assign valid_variant_found_45 = true %}
                {% if variant.title == 'Default Title' %}
                {% assign no_variant_45 = true %}
                {% endif %}
                {% break %}
              {% endif %}
            {% endfor %}
            {% if valid_variant_found_45 %}
            <div class="product-card">
                {% assign variant_first_45 = product_45.variants.first %}
                {% if variant_first_45.compare_at_price and variant_first_45.compare_at_price > variant_first_45.price %}
                  {% assign discount_diff_45 = variant_first_45.compare_at_price | minus: variant_first_45.price %}
                  {% assign discount_diff_no_decimal_45 = discount_diff_45 | floor %}
                <div class="discount-badge">{{ discount_diff_no_decimal_45 | money_without_trailing_zeros }}</div>
                <img src="{% if variant_first_45.title == 'Default Title' %} {{ product_45.featured_image.src | img_url: 'medium' }} {% else %} {{ variant_first_45.featured_image.src | img_url: 'medium' }} {% endif %}" alt="{{ product_45.title }}" />
                  {% else %}
                  {% assign discount_diff_45 = product_45.compare_at_price | minus: product_45.price %}
                  {% assign discount_diff_no_decimal_45 = discount_diff_45 | floor %}
                <div class="discount-badge">{{ discount_diff_no_decimal_45 | money_without_trailing_zeros }}</div>
                <img src="{{ product_45.featured_image | img_url: 'medium' }}" alt="{{ product_45.title }}" />
                  {% endif %}
                <div class="product-info">
                    {% if product_45.compare_at_price and product_45.compare_at_price > product_45.price %}
                    <p class="promo-info">{{ section.settings.promo_sale_tip_4 }}</p>
                    {% endif %}
                    <h3>{{ product_45.title }}</h3>
                    {% if no_variant_45 %} <div class="product-blank-area"><p></p></div> {% endif %}
                    <select class="prodduct-selects{% if no_variant_45 %} hidden {% endif %}" id="prodduct-select-{{ product_45.id }}" onchange="return productSelectChange(this);">
                        {% for variant in product_45.variants %}
                        <option class="prodduct-selects-option" 
                          data-id="{{ variant.id }}" 
                          data-price="{{ variant.price | money }}" 
                          data-old-price="{{ variant.compare_at_price | money }}"
                          data-image-url="{{ variant.featured_image.src | img_url: 'medium' }}"
                        >
                          {{ variant.title }}
                        </option>
                        {% endfor %}
                    </select>
                    <p class="price">{{ product_45.price | money }}
                    {% if product_45.compare_at_price and product_45.compare_at_price > product_45.price %}
                    <span class="old-price">{{ product_45.compare_at_price | money }}</span>
                    {% endif %}
                    </p>
                </div>
                <div class="buttons">
                    <button class="buy-now" onclick="return buyNowProductItem(this);">BUY NOW</button>
                    <button onclick="javascript:window.location.href='{{ product_45.url }}'">LEARN MORE</button>
                </div>
            </div>
            {% endif %}
        {% endif %}

        {% assign product_46 = section.settings.selected_product_46 %}
        {% if product_46 %}
            {% assign valid_variant_found_46 = false %}
            {% assign no_variant_46 = false %}
            {% for variant in product_46.variants %}
              {% if variant.available and variant.inventory_quantity > 0 %}
                {% assign valid_variant_found_46 = true %}
                {% if variant.title == 'Default Title' %}
                {% assign no_variant_46 = true %}
                {% endif %}
                {% break %}
              {% endif %}
            {% endfor %}
            {% if valid_variant_found_46 %}
            <div class="product-card">
                {% assign variant_first_46 = product_46.variants.first %}
                {% if variant_first_46.compare_at_price and variant_first_46.compare_at_price > variant_first_46.price %}
                  {% assign discount_diff_46 = variant_first_46.compare_at_price | minus: variant_first_46.price %}
                  {% assign discount_diff_no_decimal_46 = discount_diff_46 | floor %}
                <div class="discount-badge">{{ discount_diff_no_decimal_46 | money_without_trailing_zeros }}</div>
                <img src="{% if variant_first_46.title == 'Default Title' %} {{ product_46.featured_image.src | img_url: 'medium' }} {% else %} {{ variant_first_46.featured_image.src | img_url: 'medium' }} {% endif %}" alt="{{ product_46.title }}" />
                  {% else %}
                  {% assign discount_diff_46 = product_46.compare_at_price | minus: product_46.price %}
                  {% assign discount_diff_no_decimal_46 = discount_diff_46 | floor %}
                <div class="discount-badge">{{ discount_diff_46_no_decimal | money_without_trailing_zeros }}</div>
                <img src="{{ product_46.featured_image | img_url: 'medium' }}" alt="{{ product_46.title }}" />
                  {% endif %}
                <div class="product-info">
                    {% if product_46.compare_at_price and product_46.compare_at_price > product_46.price %}
                    <p class="promo-info">{{ section.settings.promo_sale_tip_4 }}</p>
                    {% endif %}
                    <h3>{{ product_46.title }}</h3>
                    {% if no_variant_46 %} <div class="product-blank-area"><p></p></div> {% endif %}
                    <select class="prodduct-selects{% if no_variant_46 %} hidden {% endif %}" id="prodduct-select-{{ product_46.id }}" onchange="return productSelectChange(this);">
                        {% for variant in product_46.variants %}
                        <option class="prodduct-selects-option" 
                          data-id="{{ variant.id }}" 
                          data-price="{{ variant.price | money }}" 
                          data-old-price="{{ variant.compare_at_price | money }}"
                          data-image-url="{{ variant.featured_image.src | img_url: 'medium' }}"
                        >
                          {{ variant.title }}
                        </option>
                        {% endfor %}
                    </select>
                    <p class="price">{{ product_46.price | money }}
                    {% if product_46.compare_at_price and product_46.compare_at_price > product_46.price %}
                    <span class="old-price">{{ product_46.compare_at_price | money }}</span>
                    {% endif %}
                    </p>
                </div>
                <div class="buttons">
                    <button class="buy-now" onclick="return buyNowProductItem(this);">BUY NOW</button>
                    <button onclick="javascript:window.location.href='{{ product_46.url }}'">LEARN MORE</button>
                </div>
            </div>
            {% endif %}
        {% endif %}

      </div>
  </div>
</div>
{% schema %}
{
  "name": "Premium Welders Setting",
  "settings": [
    {
      "type": "header",
      "content": "Premium Welders Image Setting"
    },
    {
      "type": "checkbox",
      "id": "show_img_premiumwelders",
      "label": "Enable Image",
      "default": true
    },{
      "type": "text",
      "id": "premiumwelders_img_href",
      "label": "Image Link",
      "info": "Put href link here",
      "default":"#"
    },{
      "type": "image_picker",
      "id": "premiumwelders_img_pc",
      "label": "Image On PC Client",
      "info": "Upload a image(PC)"
    },{
      "type": "image_picker",
      "id": "premiumwelders_img_mobile",
      "label": "Image On Mobile Client",
      "info": "Upload a image(Mobile)"
    },
    {
      "type": "header",
      "content": "Basic Setting"
    },
    {
      "type": "text",
      "label": "Active Title",
      "id": "activity_title",
      "default": "Only Treats No Tricks Products"
    },
    {
      "type": "text",
      "id": "custom_h2_class",
      "label": "Custom Title classes"
    },
    {
      "type": "text",
      "id": "promo_sale_tip_4",
      "label": "Promotion Product Tips",
      "default": "Lowest Price"
    },
    {
      "type": "header",
      "content": "Product[1] Setting"
    },
    {
      "type": "product",
      "id": "selected_product_41",
      "label": "Select Product [1]",
      "info": "Choose the product that contains the variant you want to display."
    },
    {
      "type": "header",
      "content": "Product[2] Setting"
    },
    {
      "type": "product",
      "id": "selected_product_42",
      "label": "Select Product [2]",
      "info": "Choose the product that contains the variant you want to display."
    },
    {
      "type": "header",
      "content": "Product[3] Setting"
    },
    {
      "type": "product",
      "id": "selected_product_43",
      "label": "Select Product [3]",
      "info": "Choose the product that contains the variant you want to display."
    },
    {
      "type": "header",
      "content": "Product[4] Setting"
    },
    {
      "type": "product",
      "id": "selected_product_44",
      "label": "Select Product [4]",
      "info": "Choose the product that contains the variant you want to display."
    },
    {
      "type": "header",
      "content": "Product[5] Setting"
    },
    {
      "type": "product",
      "id": "selected_product_45",
      "label": "Select Product [5]",
      "info": "Choose the product that contains the variant you want to display."
    },
    {
      "type": "header",
      "content": "Product[6] Setting"
    },
    {
      "type": "product",
      "id": "selected_product_46",
      "label": "Select Product [6]",
      "info": "Choose the product that contains the variant you want to display."
    }
  ]
}
{% endschema %}